﻿@model IEnumerable<MiniBottles.Models.GuestBook>

@{
    ViewBag.Title = "Wpisy księgi gości";
}
@section leftmenu
 {
     @Html.Action("Menu", "Administration")
 }

<div class="da-panel collapsible">
<div class="da-panel-header">
                                	<span class="da-panel-title">
                                        <img src="images/icons/black/16/list.png" alt="" />
                                        @ViewBag.Title
                                    </span>
                                    
                                </div>
<div class="da-panel-content">
<table id="da-ex-datatable-numberpaging" class="da-table">
                                        <thead>
                                            <tr>
                                                <th>
                                                    @Html.DisplayNameFor(model => model.Nick)
                                                </th>
                                                 <th>
                                                    @Html.DisplayNameFor(model => model.Content)
                                                </th>
                                                <th>
                                                    @Html.DisplayNameFor(model => model.CreateDate)
                                                </th>
                                               <th>
                                                   Akcje
                                               </th>
                                               
                                            </tr>
                                        </thead>
                                        <tbody>
                                           @foreach (var item in Model) {
                                            <tr>
                                                <td>
                                                    @Html.DisplayFor(modelItem => item.Nick)
                                                </td>
                                                 <td>
                                                   @Html.DisplayFor(modelItem => item.Content)
                                                </td>
                                                <td>
                                                    @Html.DisplayFor(modelItem => item.CreateDate)
                                                </td>

                                                <td>
                                                    <a title="Usuń" href="@Url.Action("DeleteComment",new { id=item.Id })"><i class="icon-remove-sign"></i></a>
 
                                                </td>
                                            </tr>
                                        }
                                        </tbody>
                                    </table>
</div>
</div>